package com.zzc.sale;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author: 陈海彬
 * @date: Created in 2023/12/7 19:43
 * @description:
 * @modified By:
 * @version:
 */
@SpringBootApplication
@MapperScan(basePackages = "com.zzc.sale.mapper")
@EnableCaching          // 开启缓存注解驱动
@EnableSwagger2
@EnableFeignClients
@ComponentScan(basePackages = {"com.zzc.sale","com.hos.config"}) //分页
public class SaleApp {
    public static void main(String[] args) {
        SpringApplication.run(SaleApp.class, args);
    }
}